package com.adjy.pathbuilders.physics;

/**
 * BoundingBox class holds properties of a BoundingVolume Box-shaped
 */
public class BoundingBox {
	
	private float x;
	private float y;
	private float width;
	private float height;

	/**
	 * Creates a BoundingBox
	 * 
	 * @param width
	 *            Width of this Box
	 * @param height
	 *            Height of this Box
	 */
	public BoundingBox(float x, float y, float width, float height) {
		setWidth(width);
		setHeight(height);
		setX(x);
		setY(y);
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	/**
	 * Sets the Width of the box
	 * 
	 * @param width
	 *            Width
	 */
	public void setWidth(float width) {
		this.width = width;
	}

	/**
	 * Sets the Height of the box
	 * 
	 * @param height
	 *            Height
	 */
	public void setHeight(float height) {
		this.height = height;
	}

	/**
	 * Get the Width of the box
	 * 
	 * @return Width
	 */
	public float getWidth() {
		return this.width;
	}

	/**
	 * Get the Height of the box
	 * 
	 * @return Height
	 */
	public float getHeight() {
		return this.height;
	}
	
	
	public String toString() {
		return "x: " + x + " y: " + y + " width: " + width + " height: " + height;
	}
	
}
